package com.etoak.service.impl;

import com.etoak.entity.LabelCategory;
import com.etoak.mapper.LabelCategoryMapper;
import com.etoak.service.LabelCategoryService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author hnb
 * @version 1.0
 * @Description:
 * @date 2022/5/11 下午3:10
 */
@Service
public class LabelCategoryImpl implements LabelCategoryService {
    @Autowired
    LabelCategoryMapper labelCategoryMapper;

    @Override
    public int add(LabelCategory labelCategory) {
        return labelCategoryMapper.insert(labelCategory);
    }
    @Override
    public int update(LabelCategory labelCategory) {
        return labelCategoryMapper.updateLabelCategory(labelCategory);
    }
    @Override
    public LabelCategory query(LabelCategory labelCategory) {
        return labelCategoryMapper.query(labelCategory);
    }
    @Override
    public List<LabelCategory> queryList(LabelCategory lableCategory) {
        return labelCategoryMapper.queryList(lableCategory);
    }

    @Override
    public int delete(String[] ids) {
        return labelCategoryMapper.deleteById(ids);
    }
}
